<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php $this->load->view('common/head'); ?>

<?php $this->load->view('common/header'); ?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar'); ?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs'); ?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set'); ?>
                <div class="page-header">
                    <h1>
                        基本信息
                        <small>
                            <i class="ace-icon fa fa-angle-double-right"></i>
                            会员基本信息
                        </small>
                    </h1>
                </div>
                <!-- /section:settings.box -->
                <div class="col-xs-12" style="margin-top: 15px;">
                    <div class="profile-user-info profile-user-info-striped">
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 用户ID</div>
                            <div class="profile-info-value">
                                <span class="editable editable-click" id="username"><?= $user_info['user_id'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 用户名</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_name'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 用户姓名</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_uname'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 所在城市</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_dress'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 性别</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username">
                                        <?php if ($user_info['user_sex'] == 0) {
                                            echo "男";
                                        } elseif ($user_info['user_sex'] == 1) {
                                            echo "女";
                                        } else {
                                            echo "未知";
                                        } ?>
                                    </span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 生日</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_birth'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 联系电话</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_tel'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 紧急联系电话</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_urgent_tel'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 微信</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_wechat'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 邮箱</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_email'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 自我介绍</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $user_info['user_self_desc'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 是否是协会会员</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?php if ($user_info['is_association_member'] == 1) {
                                            echo "是";
                                        } else {
                                            echo "否";
                                        } ?></span>
                                <span class="editable editable-click"
                                      id="username"><?= $user_info['association_member'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 是否具有导游号资格</div>
                            <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?php if ($user_info['user_guide_number'] == 1) {
                                            echo "有";
                                        } else {
                                            echo "无";
                                        } ?></span>
                            </div>
                        </div>
                    </div>
                </div>

                <?php if (!empty($car_info)) { ?>
                    <div class="page-header">
                        <h1>
                            <small>
                                <i class="ace-icon fa fa-angle-double-right"></i>
                                车辆信息详细
                            </small>
                        </h1>
                    </div>
                    <!-- /section:settings.box -->
                    <div class="col-xs-12" style="margin-top: 15px;">
                        <div class="profile-user-info profile-user-info-striped">
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 驾驶证号</div>
                                <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $car_info['drive_card_no'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 领证日期</div>
                                <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $car_info['get_drive_card_time'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 车辆品牌</div>
                                <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $car_info['car_brand_id'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 车型</div>
                                <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $car_info['car_type'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 坐席</div>
                                <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $car_info['car_seat'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 车辆年份</div>
                                <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $car_info['car_drive_time'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 车牌号</div>
                                <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $car_info['car_no'] ?></span>
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 是否有道路许可</div>
                                <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?php if ($car_info['road_access'] == 1) {
                                            echo "有";
                                        } else {
                                            echo "无";
                                        } ?></span>
                                </div>
                            </div>

                        </div>

                    </div>
                    <div class="page-header">
                        <h1>
                            <small>
                                <i class="ace-icon fa fa-angle-double-right"></i>
                                车辆图片信息
                            </small>
                        </h1>
                    </div>
                    <div class="row">
                        <div class="col-xs-12" style="margin-left: 20px;">
                            <!-- PAGE CONTENT BEGINS -->
                            <div>
                                <ul class="ace-thumbnails clearfix">
                                    <?php if (isset($car_info['car_imgs']) && !empty($car_info['car_imgs'])) {
                                        foreach ($car_info['pic_list'] as $key => $val) { ?>
                                            <li>
                                                <a href="<?php echo $val; ?>" title="Photo Title"
                                                   data-rel="colorbox" class="cboxElement">
                                                    <img width="150" height="150" alt="150x150"
                                                         src="<?php echo $val; ?>">
                                                </a>
                                            </li>
                                        <?php } ?>
                                    <?php } ?>
                                </ul>
                            </div><!-- PAGE CONTENT ENDS -->
                        </div><!-- /.col -->
                    </div>
                <?php } ?>
                <div class="page-header">
                    <h1>
                        <small>
                            <i class="ace-icon fa fa-angle-double-right"></i>
                            钱包信息
                        </small>
                    </h1>
                </div>
                <div class="col-xs-12" style="margin-top: 15px;">
                    <div class="profile-user-info profile-user-info-striped">
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 收款类型</div>
                            <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?php if ($wallet_info['type'] == 1) {
                                        echo "银行卡";
                                    } else {
                                        echo "支付宝";
                                    } ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 账号</div>
                            <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $wallet_info['account'] ?></span>
                            </div>
                        </div>
                        <div class="profile-info-row">
                            <div class="profile-info-name"> 收款人姓名</div>
                            <div class="profile-info-value">
                                <span class="editable editable-click"
                                      id="username"><?= $wallet_info['user_name'] ?></span>
                            </div>
                        </div>
                        <?php if ($wallet_info['type'] == 1) { ?>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 开户行</div>
                                <div class="profile-info-value">
                                    <span class="editable editable-click"
                                          id="username"><?= $wallet_info['bank'] ?></span>
                                </div>
                            </div>
                        <?php } ?>
                    </div>
                </div>
                <!-- /section:settings.box -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    </div><?php $this->load->view('common/footer'); ?>


<?php $this->load->view('common/footerjs'); ?>
<!-- inline scripts related to this page -->
<?php echo admin_js_url('laydate'); ?>
<script>
    laydate.render({
        elem: '#start_time' //指定元素
        , type: "datetime"
    });
</script>
<script type="text/javascript">
    jQuery(function ($) {
        var $overflow = '';
        var colorbox_params = {
            rel: 'colorbox',
            reposition: true,
            scalePhotos: true,
            scrolling: false,
            previous: '<i class="ace-icon fa fa-arrow-left"></i>',
            next: '<i class="ace-icon fa fa-arrow-right"></i>',
            close: '&times;',
            current: '{current} of {total}',
            maxWidth: '100%',
            maxHeight: '100%',
            onOpen: function () {
                $overflow = document.body.style.overflow;
                document.body.style.overflow = 'hidden';
            },
            onClosed: function () {
                document.body.style.overflow = $overflow;
            },
            onComplete: function () {
                $.colorbox.resize();
            }
        };

        $('.ace-thumbnails [data-rel="colorbox"]').colorbox(colorbox_params);
        $("#cboxLoadingGraphic").html("<i class='ace-icon fa fa-spinner orange fa-spin'></i>");//let's add a custom loading icon


        $(document).one('ajaxloadstart.page', function (e) {
            $('#colorbox, #cboxOverlay').remove();
        });
    })
</script>
</body>
</html>
